package com.sgb.kjwl.model.entity.self;

import android.os.Build;

import androidx.annotation.RequiresApi;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

public class SelfTeamOfferEntity implements Serializable {

    private String id;
    //"no")
    private String no;
    //"teamNo")
    private String teamNo;
    //"一级分类编号")
    private String firstCategoryNo;
    //"二级分类编号")
    private String secondCategoryNo;
    //"三级分类编号")
    private String thirdCategoryNo;
    //"四级分类编号")
    private String fourCategoryNo;
    //"五级分类编号")
    private String fifthCategoryNo;
    //"六级分类编号")
    private String sixthCategoryNo;
    //"一级分类名称")
    private String firstCategoryName;
    //"二级分类名称")
    private String secondCategoryName;
    //"三级分类名称")
    private String thirdCategoryName;
    //"四级分类名称")
    private String fourCategoryName;
    //"五级分类名称")
    private String fifthCategoryName;
    //"六级分类名称")
    private String sixthCategoryName;
    private String cagegoryName;
    //"包含设备")
    private String equipment;
    //"辅材")
    private String material;
    //"含辅材单价")
    private String priceWithMaterial;
    //"不含辅材单价")
    private String price;
    //"报价原则")
    private String principle;
    //"工种名称")
    private String typeWorkName;
    private String typeWork;
    //"报价方案状态(0:包含 1：不包含 2：两种)")
    private Integer hasMaterial;
    //"企业编号")
    private String companyNo;
    // 报价团队
    private String priceTeam;

    private String provinceNo;
    private String cityNo;
    private String areaNo;
    private String provinceName;
    private String cityName;
    private String areaName;

    private boolean isFocus;
    private String location;
    /**
     * applyStatus : 0
     */
    private Integer applyStatus;
    //审批状态 -1：审批中、0：已拒绝、2：已通过


    public boolean isFocus() {
        return isFocus;
    }

    public void setFocus(boolean focus) {
        isFocus = focus;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    private String userNo;

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    private String unit;

    //2.8.0新增
    private String address;
    private String contact;
    private String contactPhone;
    private String imId;
    private String imName;
    private String latitude;
    private String longitude;
    private String teamName;
    private List<EquipmentListDTO> equipmentList;
    private List<MaterialListDTO> materialList;

    private String processId; //审批流程编号

    public String getProcessId() {
        return processId;
    }

    public void setProcessId(String processId) {
        this.processId = processId;
    }

    public String getTypeWorkName() {
        return typeWorkName;
    }

    public void setTypeWorkName(String typeWorkName) {
        this.typeWorkName = typeWorkName;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getProvinceName() {
        if (provinceName == null)
            return "";
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        if (cityName == null)
            return "";
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAreaName() {
        if (areaName == null)
            return "";
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    private String categoryName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getTeamNo() {
        return teamNo;
    }

    public void setTeamNo(String teamNo) {
        this.teamNo = teamNo;
    }

    public String getFirstCategoryNo() {
        return firstCategoryNo;
    }

    public void setFirstCategoryNo(String firstCategoryNo) {
        this.firstCategoryNo = firstCategoryNo;
    }

    public String getSecondCategoryNo() {
        return secondCategoryNo;
    }

    public void setSecondCategoryNo(String secondCategoryNo) {
        this.secondCategoryNo = secondCategoryNo;
    }

    public String getThirdCategoryNo() {
        return thirdCategoryNo;
    }

    public void setThirdCategoryNo(String thirdCategoryNo) {
        this.thirdCategoryNo = thirdCategoryNo;
    }

    public String getFourCategoryNo() {
        return fourCategoryNo;
    }

    public void setFourCategoryNo(String fourCategoryNo) {
        this.fourCategoryNo = fourCategoryNo;
    }

    public String getFifthCategoryNo() {
        return fifthCategoryNo;
    }

    public void setFifthCategoryNo(String fifthCategoryNo) {
        this.fifthCategoryNo = fifthCategoryNo;
    }

    public String getSixthCategoryNo() {
        return sixthCategoryNo;
    }

    public void setSixthCategoryNo(String sixthCategoryNo) {
        this.sixthCategoryNo = sixthCategoryNo;
    }

    public String getFirstCategoryName() {
        return firstCategoryName;
    }

    public void setFirstCategoryName(String firstCategoryName) {
        this.firstCategoryName = firstCategoryName;
    }

    public String getSecondCategoryName() {
        return secondCategoryName;
    }

    public void setSecondCategoryName(String secondCategoryName) {
        this.secondCategoryName = secondCategoryName;
    }

    public String getThirdCategoryName() {
        return thirdCategoryName;
    }

    public void setThirdCategoryName(String thirdCategoryName) {
        this.thirdCategoryName = thirdCategoryName;
    }

    public String getFourCategoryName() {
        return fourCategoryName;
    }

    public void setFourCategoryName(String fourCategoryName) {
        this.fourCategoryName = fourCategoryName;
    }

    public String getFifthCategoryName() {
        return fifthCategoryName;
    }

    public void setFifthCategoryName(String fifthCategoryName) {
        this.fifthCategoryName = fifthCategoryName;
    }

    public String getSixthCategoryName() {
        return sixthCategoryName;
    }

    public void setSixthCategoryName(String sixthCategoryName) {
        this.sixthCategoryName = sixthCategoryName;
    }

    public String getEquipment() {
        return equipment;
    }

    public void setEquipment(String equipment) {
        this.equipment = equipment;
    }

    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public String getPriceWithMaterial() {
        return priceWithMaterial;
    }

    public void setPriceWithMaterial(String priceWithMaterial) {
        this.priceWithMaterial = priceWithMaterial;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPrinciple() {
        return principle;
    }

    public void setPrinciple(String principle) {
        this.principle = principle;
    }

    public String getTypeWork() {
        return typeWork;
    }

    public void setTypeWork(String typeWork) {
        this.typeWork = typeWork;
    }

    public Integer getHasMaterial() {
        return hasMaterial;
    }

    public void setHasMaterial(Integer hasMaterial) {
        this.hasMaterial = hasMaterial;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getPriceTeam() {
        return priceTeam;
    }

    public void setPriceTeam(String priceTeam) {
        this.priceTeam = priceTeam;
    }

    public String getCagegoryName() {
        return cagegoryName;
    }

    public void setCagegoryName(String cagegoryName) {
        this.cagegoryName = cagegoryName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SelfTeamOfferEntity that = (SelfTeamOfferEntity) o;
        return no.equals(that.no);
    }

    @RequiresApi(api = Build.VERSION_CODES.KITKAT)
    @Override
    public int hashCode() {
        return Objects.hash(no);
    }

    public String getProvinceNo() {
        return provinceNo;
    }

    public void setProvinceNo(String provinceNo) {
        this.provinceNo = provinceNo;
    }

    public String getCityNo() {
        return cityNo;
    }

    public void setCityNo(String cityNo) {
        this.cityNo = cityNo;
    }

    public String getAreaNo() {
        return areaNo;
    }

    public void setAreaNo(String areaNo) {
        this.areaNo = areaNo;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getImId() {
        return imId;
    }

    public void setImId(String imId) {
        this.imId = imId;
    }

    public String getImName() {
        return imName;
    }

    public void setImName(String imName) {
        this.imName = imName;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public List<EquipmentListDTO> getEquipmentList() {
        return equipmentList;
    }

    public void setEquipmentList(List<EquipmentListDTO> equipmentList) {
        this.equipmentList = equipmentList;
    }

    public List<MaterialListDTO> getMaterialList() {
        return materialList;
    }

    public void setMaterialList(List<MaterialListDTO> materialList) {
        this.materialList = materialList;
    }

    public Integer getApplyStatus() {
        return applyStatus;
    }

    public void setApplyStatus(Integer applyStatus) {
        this.applyStatus = applyStatus;
    }


    public static class EquipmentListDTO implements Serializable {
        /**
         * category : 设备名称
         * model : 设备型号
         * name : 设备名
         * quantity : 设备数量
         * unit : 设备单位
         * url : 图片地址
         */

        private String category;
        private String model;
        private String name;
        private String quantity;
        private String unit;
        private String url;

        public String getCategory() {
            return category;
        }

        public void setCategory(String category) {
            this.category = category;
        }

        public String getModel() {
            return model;
        }

        public void setModel(String model) {
            this.model = model;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getQuantity() {
            return quantity;
        }

        public void setQuantity(String quantity) {
            this.quantity = quantity;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }

    public static class MaterialListDTO implements Serializable {
        /**
         * category : 材料名称
         * model : 材料型号
         * name : 材料名
         * quantity : 材料数量
         * unit : 材料单位
         * url : 图片地址
         */

        private String category;
        private String model;
        private String name;
        private String quantity;
        private String unit;
        private String url;

        public String getCategory() {
            return category;
        }

        public void setCategory(String category) {
            this.category = category;
        }

        public String getModel() {
            return model;
        }

        public void setModel(String model) {
            this.model = model;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getQuantity() {
            return quantity;
        }

        public void setQuantity(String quantity) {
            this.quantity = quantity;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }


}
